package com.shop.service.impl;

import com.alipay.api.domain.GoodsDetail;
import com.shop.constant.Constants;
import com.shop.dao.ShowDao;
import com.shop.entity.*;
import com.shop.factory.ObjectFactory;
import com.shop.service.ShowService;


import java.util.List;

public class ShowServiceImpl implements ShowService {


    private static ShowDao dao = (ShowDao) ObjectFactory.getInstance(Constants.SHOW_DAO_KEY);

    @Override
    public List<Show> ShowGoodsDetail_8(){
        return dao.query_Goods_8();
    }

    @Override
    public List<Show> ShowGDByBuyNum_7() {
        return dao.query_GDS_ByBuyNum_7();
    }

    @Override
    public List<Show> ShowGDByBuyNum_12(int pageNum, int pageSize) {
        return dao.query_GDS_ByBuyNum_12(pageNum,pageSize);
    }

    @Override
    public List<Show> ShowGDByFirstType_4(int firstType) {
        return dao.query_GDS_ByFirstType_4(firstType);
    }


    @Override
    public List<Show> queryGDByGDName(String gdName,int pageSize,int pageNum) {
        return dao.query_GDS_ByGDName(gdName,pageSize,pageNum);
    }

    @Override
    public List<Show> ShowGDByFirstType_12(int firstType, int pageNum, int pageSize) {
        return dao.query_GDS_ByFirstType_12(firstType,pageNum,pageSize);
    }

    @Override
    public List<Show> ShowGDBySecondType_12(int secondType, int pageNum, int pageSize) {
        return dao.query_GDS_BySecondType(secondType,pageNum,pageSize);
    }

    @Override
    public List<GoodsContent> SeeGoodsContent(int gd_id) {
        return dao.queryGoodContent(gd_id);
    }

    @Override
    public List<GoodsFourType> getGDSFourType(int gd_id) {
        return dao.queryFourTypeByGDId(gd_id);
    }

    @Override
    public int getShoppingCartNum(int u_id) {
        return dao.getShoppingCartNum(u_id);
    }

    @Override
    public List<GoodsTypeVO> GetOtherGDType(int gd_id) {
        return dao.getOtherGDType(gd_id);
    }

    @Override
    public int getSidByUid(int u_id) {
        return dao.getSidByUid(u_id);
    }

    @Override
    public int getGoodsSid(int gd_id) {
        return dao.getGoodsSid(gd_id);
    }

    @Override
    public int getSc_id(int u_id) {
        return dao.getSc_id(u_id);
    }

}
